﻿#region 文件信息

// FileName: SoCafeShop/Sohobloo.SoMcCoffee.Public/EntityBase.cs
// Author: Sohobloo
// CreateTime: 2013/06/30 2:34
// UpdateTime: 2013/06/30 3:41

#endregion

#region 引用

using System;

#endregion

namespace Sohobloo.SoMcCoffee.Public.Entity
{
    [Serializable]
    public abstract class EntityBase
    {
        #region 属性

        public Guid Id { get; set; }

        public string CreateUser { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime UpdateTime { get; set; }

        public string UpdateUser { get; set; }

        public byte[] Timestamp { get; set; }

        #endregion 属性

        #region 构造

        protected EntityBase()
        {
            Id = Guid.NewGuid();
            CreateUser = UpdateUser = string.Empty;
            CreateTime = UpdateTime = DateTime.UtcNow;
        }

        #endregion 构造
    }
}